home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_slashtap2.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  59 lines

  1.  
  2. # Jones 3D Cog Script
  3. #
  4. # gen_SlashWeb.cog
  5. #
  6. # [TRM] [TL] [GGJ]
  7. #
  8. #    Modified so that hang ledge isn't hangable until after slashed.
  9. #
  10. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  11. # ========================================================================================
  12. symbols
  13.     
  14. message     startup
  15. thing        tapRod
  16. #message     damaged
  17.  
  18. #surface     tap                            mask=0x8
  19. #surface        tapback                        mask=0x8
  20. #surface        hangLedge
  21.  
  22. #sound        rip=gen_tapestry_rip_c.wav    local
  23.  
  24. #int         type                        local
  25. #int         player                        local
  26.  
  27. end
  28.  
  29. # ========================================================================================
  30. code
  31.  
  32. startup:
  33. SetCollideType(tapRod, 0);
  34.  
  35. #ClearSurfaceFlags(hangLedge, 0x1000000);
  36. #player = GetLocalPlayerThing();
  37.     
  38. return;
  39.     
  40. # ........................................................................................
  41. #damaged:
  42.  
  43. # See if damage is from machete -- RT
  44. #if (GetParam(1) == 0x20)
  45. #{
  46. #    PlaySoundLocal(rip, 1.0, 0, 0x0000, 0);
  47. #    SetWallCel(tap, 1);
  48. #    SetWallCel(tapback, 1);
  49. #    SetAdjoinFlags(tap, 2);
  50. #    setadjoinflags(tapback, 2);
  51. #    SetSurfaceFlags(hangLedge, 0x1000000);
  52. #}
  53.     
  54. #return;
  55.  
  56. # ........................................................................................
  57. end
  58.  
  59.